<!DOCTYPE html>
<html lang="utf-8" class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <#include "/comm/module-index.ftl"/>
</head>

<body>
<div class="layui-div-body">
    <div class="x-nav">
          <span class="layui-breadcrumb">
            <a href="">首页</a>
            <a href="">基础设置</a>
            <a>
              <cite>系统配置</cite></a>
          </span>
    </div>
    <div class="layui-fluid layui-div-table">
        <div>
            <div class="common-btn-block">
                <button class="layui-btn  layui-btn-sm" lay-on="add"><i
                            class="layui-icon  layui-icon-add-1"></i> 添加
                </button>
                <button class="layui-btn  layui-btn-sm layui-btn-normal" lay-on="destroy"><i
                            class="layui-icon">&#xe616;</i>销毁
                </button>
                <button class="layui-btn  layui-bg-purple layui-btn-sm" lay-on="generator"><i
                            class="layui-icon  layui-icon-file-b"></i> 模版配置
                </button>
            </div>
        </div>
        <#-- table-->
        <div class="layui-table-body" style="flex: 1;padding-top: 5px;" id="layui-table-bar">
            <table class="layui-hide" lay-filter="layui-table-main" id="layui-table-main"></table>
        </div>

    </div>
</div>
<script type="text/html" id="myOperateBtn">
    <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="destroy"><i class="layui-icon layui-icon-delete"></i>销毁</a>
</script>
<script type="text/javascript">
    layui.use(['index', 'element'], function () {
        let tableBase = layui.index;
        tableBase.render({
            cols: [{
                type: 'checkbox',
                fixed: 'left'
            },
                {type: 'space', hide: true, field: "_id"},
                {field: 'code', title: '编码'},
                {field: 'name', title: '名称'},
                {field: 'value_li', title: '参数值长整型'},
                {field: 'value_lf', title: '参数值长浮点'},
                {field: 'value_vc', title: '参数值字符串'},
                {field: 'value_t', title: '参数值文本'},
                {field: 'description', title: '描述'},
                {fixed: 'right', title: '操作', toolbar: '#myOperateBtn', width: 65, align: 'center'}
            ],
            area: ['800px', '630px'],
            rowDouble:function (id,obj) {
                tableBase.edit(id)
            }
        })
    });
</script>
</body>
</html>